package com.hbnrtech.sip.datasource.config;

/**
 * @author liuduo
 * @date 2023/5/13 10:39
 */
public class DataSourceContextHolder {

    private static final ThreadLocal<String> contextHolder = new ThreadLocal<>();

    public static void set(String ds) {
        contextHolder.set(ds);
    }

    public static String get() {
        return contextHolder.get();
    }

    public static void clear() {
        contextHolder.remove();
    }
}




